package com.czz.manage.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.czz.manage.entity.Course;
import com.czz.manage.query.AdminCourseQuery;
import com.czz.manage.vo.ChartVo;
import com.czz.manage.vo.CoursePublishVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @ClassName: CourseMapper
 * @Author Czz
 * @Date 2020/1/19
 * @Time 20:28
 **/
@Repository
public interface CourseMapper extends BaseMapper<Course> {
    CoursePublishVo getCoursePublishVoById(String courseId);
    List<ChartVo> getWeekCourseAdd();
    List<Course> getAdminCoursePageList(Page<Course> pageParam, @Param("query")AdminCourseQuery courseQuery);
    List<ChartVo> getAdminCourseDaily(String begin, String end);
    List<ChartVo> getTeacherCourseDaily(String teacherId, String begin, String end);
}
